﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
using System.IO;
using System.Reflection;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Windows.Forms;
using System.Windows.Forms.Design;

namespace Mdv.wssAddins
{
    [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")] 
    public class XMLPropertyTab : PropertyTab
    {
        public override string TabName
        {
            get { return "XML"; }
        }
        public override System.Drawing.Bitmap Bitmap
        {
            get { return (System.Drawing.Bitmap)global::Mdv.wssAddins.Properties.Resources.XMLFile; }
        }
        public override PropertyDescriptorCollection GetProperties(object component, Attribute[] attributes)
        {
            PropertyDescriptor pd = TypeDescriptor.CreateProperty(component.GetType(), "XmlDefinition", typeof(System.Xml.XmlNode), new CategoryAttribute("XML definition"));
            return (new PropertyDescriptorCollection(new PropertyDescriptor[] { pd }));
        }
    }
}